package com.cxh.rmsq.net.service;

import androidx.lifecycle.LiveData;

import com.cxh.rmsq.db.model.AuthenticationBean;
import com.cxh.rmsq.model.Result;
import com.cxh.rmsq.model.Result2;
import com.cxh.rmsq.model.SecurityStatusResult;
import com.cxh.rmsq.model.SecurityVerifyResult;
import com.cxh.rmsq.net.SealTalkUrl;
import java.util.Map;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

public interface SecurityService {

    /**
     * 查询数美开关状态
     *
     * @return
     */
    @GET(SealTalkUrl.SECURITY_STATUS)
    LiveData<Result<SecurityStatusResult>> querySecurityStatus();

    /**
     * 数美黑产验证
     *
     * @return
     */
    @GET(SealTalkUrl.SECURITY_VERIFY)
    LiveData<Result<SecurityVerifyResult>> doSecurityVerify(
            @QueryMap(encoded = true) Map<String, String> queryMap);

    /**
     * 实名认证相关
     *
     * @return
     */
    @GET(SealTalkUrl.Authentication_Status)
    LiveData<Result2<AuthenticationBean>> getAuthentication(@Query("userId")String userId);
}
